﻿using System.ComponentModel.DataAnnotations;
using AllIsWell.Tests.TestData;
using NUnit.Framework;

namespace AllIsWell.Core.Tests.Models
{
    [TestFixture]
    class RetrospectTests : ModelTests
    {
        [Test]
        [ExpectedException(typeof(ValidationException), UserMessage = "What is required")]
        public void WhatIsRequired()
        {
            var retrospect = RetrospectSeed.GetRetroSpect();
            retrospect.What = null;

            ValidateModel(retrospect);
        }
    }
}